import { PopupCommonTipsBase } from "./PopupCommonTips.generated";

const { regClass, property } = Laya;

@regClass()
export class PopupCommonTips extends PopupCommonTipsBase {

    public showView(content: string): void {
        this.visible = true;
        this.labelTipsContent.text = content;
        this.timerOnce(2000, this, this.hideView);
    }

    private hideView(): void {
        this.labelTipsContent.text = "";
        this.visible = false;
    }
}